#include <comdef.h>
#include <GdiPlus.h>
#include "ImageHelper.h"
using namespace CODEHELPER;
#pragma comment(lib,"Gdiplus.lib")

ULONG CImageHelper::m_gdiplusToken = 0;

CImageHelper::CImageHelper( void )
{

}


CImageHelper::~CImageHelper( void )
{

}

BOOL CImageHelper::InitGDIPlus()
{
    Gdiplus::GdiplusStartupInput gdiplusStartupInput;
    Gdiplus::GdiplusStartup( &m_gdiplusToken, &gdiplusStartupInput, NULL );
    return TRUE;
}

BOOL CImageHelper::UnInitGDIPlus()
{
    Gdiplus::GdiplusShutdown( m_gdiplusToken );
    return TRUE;
}
